package com.lagou.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author srh
 * @date 2020/03/26
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageVO<T> implements Serializable {

    private static final long serialVersionUID = 4221945729194486873L;
    /**
     * 是否有上一页：首页时不显示
     */
    private Boolean hasPrePage;
    /**
     * 是否有下一页：尾页时不显示
     */
    private Boolean hasNextPage;
    /**
     * 分页数据
     */
    private List<T> articleList;
    /**
     * 总页数
     */
    private Integer totalPage;
    /**
     * 当前页
     */
    private Integer currentPage;
}
